import request from '@/utils/request'

// 查询室间质评文件列表
export function listSpaceQualityFile(query) {
  return request({
    url: '/system/spaceQualityFile/list',
    method: 'get',
    params: query
  })
}

// 查询室间质评文件详细
export function getSpaceQualityFile(id) {
  return request({
    url: '/system/spaceQualityFile/' + id,
    method: 'get'
  })
}

// 新增室间质评文件
export function addSpaceQualityFile(data) {
  return request({
    url: '/system/spaceQualityFile',
    method: 'post',
    data: data
  })
}

// 修改室间质评文件
export function updateSpaceQualityFile(data) {
  return request({
    url: '/system/spaceQualityFile',
    method: 'put',
    data: data
  })
}

// 删除室间质评文件
export function delSpaceQualityFile(id) {
  return request({
    url: '/system/spaceQualityFile/' + id,
    method: 'delete'
  })
}
